<template>
    <div class="starAndcoin">
        <div class="listContent">
            <div class="title">
                金币积分
            </div>
            <div class="lableContent">
                <div style="width: 10%;">
                    排名
                </div>
                <div style="width: 50%;">
                    学生
                </div>
                <div style="width: 40%;">
                    积分
                </div>
            </div>

            <div class="dataContent">
                <div class="dataitem" v-for="(item, index) in 10" :key="index">
                    <div v-if="index == 0" style="width: 10%;">
                        <img src="@/static/image/ph01.png" alt="">
                    </div>
                    <div v-if="index == 1" style="width: 10%;">
                        <img src="@/static/image/ph02.png" alt="">
                    </div>
                    <div v-if="index == 2" style="width: 10%;">
                        <img src="@/static/image/ph03.png" alt="">
                    </div>

                    <div v-if="index > 2" style="width: 10%;padding-left: 10px;box-sizing: border-box;">{{ index + 1 }}
                    </div>
                    <div class="student" style="width: 50%;">
                        <img src="@/static/image/avatar.jpg" alt="">
                        <div>妍与韩</div>
                    </div>
                    <div style="width: 40%;">
                        22255
                    </div>
                </div>
            </div>

        </div>
        <div class="shu"></div>

        <div class="listContent">
            <div class="title">
                星星积分
            </div>
            <div class="lableContent">
                <div style="width: 10%;">
                    排名
                </div>
                <div style="width: 50%;">
                    学生
                </div>
                <div style="width: 40%;">
                    积分
                </div>
            </div>

            <div class="dataContent">
                <div class="dataitem" v-for="(item, index) in 10" :key="index">
                    <div v-if="index == 0" style="width: 10%;">
                        <img src="@/static/image/ph01.png" alt="">
                    </div>
                    <div v-if="index == 1" style="width: 10%;">
                        <img src="@/static/image/ph02.png" alt="">
                    </div>
                    <div v-if="index == 2" style="width: 10%;">
                        <img src="@/static/image/ph03.png" alt="">
                    </div>

                    <div v-if="index > 2" style="width: 10%;padding-left: 10px;box-sizing: border-box;">{{ index + 1 }}
                    </div>
                    <div class="student" style="width: 50%;">
                        <img src="@/static/image/avatar.jpg" alt="">
                        <div>妍与韩</div>
                    </div>
                    <div style="width: 40%;">
                        22255
                    </div>
                </div>
            </div>

        </div>

    </div>
</template>

<script>
export default {
    data() {
        return {

        }
    },
    methods: {

    }
}
</script>

<style scoped lang="scss">
.starAndcoin {
    width: 100%;
    height: 600px;
    background: #FFFFFF;
    border-radius: 4px 4px 4px 4px;
    margin-top: 16px;
    display: flex;

    .shu {
        width: 1px;
        height: 90%;
        background-color: #D9D9D9;
        margin: auto 30px;
    }

    .listContent {
        width: 40%;
        height: 100%;
        padding: 16px;
        box-sizing: border-box;

        .title {
            font-family: PingFang SC, PingFang SC;
            font-weight: 500;
            font-size: 14px;
            color: #333333;
            line-height: 16px;
        }

        .lableContent {
            margin-top: 18px;
            display: flex;
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 12px;
            color: rgba(0, 0, 0, 0.4);
            line-height: 20px;
        }

        .dataContent {
            .dataitem {
                display: flex;
                align-items: center;
                font-family: PingFang SC, PingFang SC;
                font-weight: 400;
                font-size: 12px;
                color: #333333;
                line-height: 20px;
                height: 52px;
                border-top: 1px solid #E7E7E7;
                cursor: pointer;

                img {
                    width: 28px;
                    height: 28px;
                    margin-right: 10px;
                }

                .student {
                    display: flex;
                    align-items: center;
                }
            }

            .dataitem:hover {
                background: #EAF9E8;
            }

        }
    }
}
</style>